package net.asfun.jvalog.frame;

import net.asfun.jangod.cache.StatelessObjectStorage;
import net.asfun.jvalog.common.GMCacher;

public class GMCacheStorage<V> implements StatelessObjectStorage<String, V> {

	@Override
	public void clear() {
		GMCacher.clear();
	}

	@SuppressWarnings("unchecked")
	@Override
	public V get(String key) {
		return (V) GMCacher.get(key);
	}

	@Override
	public void put(String key, V value) {
		GMCacher.put(key, value);
	}

	@Override
	public void remove(String key) {
		GMCacher.remove(key);
	}

}
